package com.project.dao;

import com.project.entity.SysInfo;

import java.util.List;

/**
 * @Author: TateBrown
 * @date: 2018/5/26 12:55
 * @param:
 * @return:
 */
public interface SysInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SysInfo record);

    int insertSelective(SysInfo record);

    SysInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SysInfo record);

    List<SysInfo> selectAll();

    int updateByPrimaryKey(SysInfo record);

    /**
     * author: WheelChen
     * date: 2017/11/3
     * function: 根据属性名查找单个记录
     *
     * @param propertyName 属性名
     * @return
     */
    SysInfo selectOneByPropertyName(String propertyName);

    /**
     * author: WheelChen
     * date: 2017/11/3
     * function: 根据属性名修改单条记录
     *
     * @param sysInfo
     * @return
     */
    int updateOneByPropertyName(SysInfo sysInfo);

    /**
     * author: WheelChen
     * date: 2017/11/8
     * function: 根据条件批量查找
     *
     * @param sysInfo
     * @return
     */
    List<SysInfo> selectBatchByCondition(SysInfo sysInfo);
}
